package com.nmf.site.biz.pay.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import com.nmf.site.biz.member.gen.service.BizMemberService;
import com.nmf.site.common.utils.IdGenerater;
import com.nmf.site.modules.sys.service.SystemService;

@Component
public class BizPayService {
	@Autowired
	BizMemberService bizMemberService;
	@Autowired
	IdGenerater idGenerater;
	@Autowired
	SystemService systemService;
	@Value("${alipay.kd.payurl}")
	String alipayUrl;
	public String genAliSkuUrl(String orderNo) {
		return alipayUrl+"?orderNo="+orderNo;
	}
	
	@Value("${wechat.pay.webOauthUrl}")
	String webOauthUrl;
	public String genWechatUrl(String orderNo) {
		return webOauthUrl+"?orderNo="+orderNo;
	}
}
